const { Task } = require("../db/index.cjs");

module.exports = [
	{
		channel: 'task.getPagedList',
		listener: (event, a = {}, { pageNum = 1, pageSize = 10 }) => {
			return Task.findAll({
				limit: pageSize,
				offset: (pageNum - 1) * pageSize
			})
		}
	}
]
